<?

include_once("download.inc.php");
$string = download("http://www.unwetterzentrale.de/", "uwz/getwarning_de.php?plz=48143&uwz=UWZ-DE&lang=de");
$html = str_get_html($string);

$warnungen ="";
foreach($html->find('div[id=content]') as $article) {
	foreach($article->find('div[style=margin-left: 125px; padding-top: 30px; margin-bottom: 30px;]') as $li) 
       {
$li -> outertext ='';
       }
       
       	foreach($article->find('ul') as $li3) 
       {
$li3 -> outertext ='';
       }
       
       	foreach($article->find('div[style=display:none;]') as $li2) 
       {
$li2 -> outertext ='';
       }
         	foreach($article->find('p[style=font-size:14px;]') as $li4) 
       {
$li4 -> outertext ='';
       }
       
                	foreach($article->find('hr') as $li5) 
       {
$li5 -> outertext ='';
       }

       
                foreach($article->find('h3') as $li7) 
       {
$li7 -> outertext ='';
       }
       
                       foreach($article->find('script') as $li8) 
       {
$li8 -> outertext ='';
       }
       
                              foreach($article->find('noscript') as $li9) 
       {
$li9 -> outertext ='';
       }

       
    $warnungen  = $article->outertext;
}
$warnungen = str_replace("h1", "h3",$warnungen );
$warnungen = str_replace("ü", "&uuml;",$warnungen );
$warnungen = str_replace("ö", "&ouml;",$warnungen );
$warnungen = str_replace("ä", "&auml;",$warnungen );
$warnungen = str_replace("Ü", "&Uuml;",$warnungen );
$warnungen = str_replace("Ä", "&Auml;",$warnungen );
$warnungen = str_replace("Ö", "&Ouml;",$warnungen );
$warnungen = str_replace("ß", "&szlig;",$warnungen );

$warnungen = str_replace("../", "http://www.unwetterzentrale.de/",$warnungen );


?>